package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenhc
 * @since 2025-03-26
 */
@Data
@ApiModel("告警规则")
@TableName("alert_rules")
public class AlertRules implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("告警规则的唯一标识")
    private Integer id;

    @ApiModelProperty("告警规则的名称")
    private String rule;

    @ApiModelProperty("告警规则的严重程度")
    private String severity;

    @ApiModelProperty("额外信息")
    private String extra;

    @ApiModelProperty("是否禁用该告警规则")
    private Boolean disabled;

    @ApiModelProperty("规则名称")
    private String name;

    @ApiModelProperty("查询语句")
    private String query;

    @ApiModelProperty("构建器信息")
    private String builder;

    @ApiModelProperty("处理过程")
    private String proc;

    @ApiModelProperty("是否反转映射")
    private Boolean invertMap;

    @ApiModelProperty("备注信息")
    private String notes;
}
